package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.BuyCartBean;
import com.project.bean.ProductBean;
import com.project.bean.SaleCartBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IProductMapper extends BaseMapper<ProductBean> {
    /**
     * 按购物车集合更新商品库存
     * @param buyCartList 购物车集合
     */
    public void updateByBuyCartList(List<BuyCartBean> buyCartList);

    /**
     * 按销售车集合更新商品库存
     * @param saleCartList 销售车集合
     */
    public void updateBySaleCartList(List<SaleCartBean> saleCartList);
}
